//
//  DelegateModelController.m
//  Objc进阶Demo
//
//  Created by Don't update on 2018/7/14.
//  Copyright © 2018年 Don't update. All rights reserved.
//

#import "DelegateModelController.h"
#import "SaloonCar.h"
@interface DelegateModelController ()<CarDelegate>
@property(nonatomic,strong)SaloonCar *BensCar;
@end

@implementation DelegateModelController

#pragma marl ---此处实现代理方法
-(void)carRun{
    NSLog(@"老司机开车污污污");
}

//-(void)carVoice{
//    NSLog(@"dididi");
//}



- (void)viewDidLoad {
    [super viewDidLoad];
    _BensCar = [[SaloonCar alloc]init];
    _BensCar.name = @"奔驰";
    _BensCar.price = 10000;
    self.BensCar.delegate = self;
    [self.BensCar loadCarDelegate];
    [self.BensCar buyCar];
}



@end
